package org.vsg.stock.core.indicator.coordinate;

public class SimpleCoordinatePoint implements CoordinatePoint {

	private double xvalue;
	private double yvalue;

	/**
	 * @return 
	 */
	public double getXvalue() {
		return xvalue;
	}

	/**
	 * @return 
	 */
	public double getYvalue() {
		return yvalue;
	}

	/**
	 * @param xvalue
	 */
	public void setXvalue(double xvalue) {
		this.xvalue = xvalue;
	}

	/**
	 * @param yvalue
	 */
	public void setYvalue(double yvalue) {
		this.yvalue = yvalue;
	}

	@Override
	public String toString() {
		return "SimpleCoordinatePoint [xvalue=" + xvalue + ", yvalue=" + yvalue
				+ "]";
	}

	@Override
	public boolean equals(Object arg0) {
		boolean result = super.equals(arg0);
		
		if ( !result ) {
			CoordinatePoint cp = (CoordinatePoint)arg0;
			result = this.xvalue == cp.getXvalue() && this.yvalue == cp.getYvalue();
		}
		

		return result;
	}

	
	
}
